package com.hk.commons.poi.excel.read.sax.v03.handler;

import com.hk.commons.poi.excel.read.sax.v03.XlsReadContext;
import org.apache.poi.hssf.record.Record;
import org.apache.poi.hssf.record.SSTRecord;

/**
 * 存储了在Excel中文本单元格中的文本值，文本单元格通过索引获取文本值
 *
 * @author Kevin
 */
public class SstRecordHandler implements XlsRecordHandler {

    @Override
    public boolean support(Record poiRecord, XlsReadContext readContext) {
        return true;
    }

    @Override
    public void processRecord(Record poiRecord, XlsReadContext readContext) {
        readContext.setSstRecord((SSTRecord) poiRecord);
    }
}
